package ee.testClasses;

import ttu.idu0080.order.server.client.Order;
import ttu.idu0080.order.server.client.OrderService_OrderServicePort_Client;

public class GetOrderByIdTesting 
{

	/**
	 * @param args
	 */
	public static void main(String[] args) 
	{
		OrderService_OrderServicePort_Client orderServicePortClient = new OrderService_OrderServicePort_Client();
		Order order = orderServicePortClient.getOrderByOrderId(6);
		System.out.println("ID: " + order.getOrderId());
		System.out.println("Klient" + order.getCustomer().getFirstName());
		System.out.println("Koguhind: " + order.getPriceTotal());
		System.out.println("Adre: " + order.getShippingAddress().getStreetAddress());
		System.out.println("Myyja: " + order.getSeller().getName());
	}

}
